<?php
require_once(V5_PATH.'Smarty/Smarty.class.php');
//控制器基类
class Controller extends Smarty{
	public function __construct(){
		//左界面符
		$this->left_delimiter=C('left_delimiter');
		//模板目录
		$this->template_dir=VIEW_PATH.CONTROLLER;
		//编译目录
		$this->compile_dir=VIEW_PATH.CONTROLLER.'/Compile';
		is_dir($this->compile_dir) or mkdir($this->compile_dir,0755,true);
	}
	//操作成功时提示信息
	public function success($action,$message){
		$url = "?m=".MODULE.'&c='.CONTROLLER.'&a='.$action;
		require VIEW_PATH.CONTROLLER.'/Public/success.html';
		exit;
	}
}